Desktop.ImageInspectionWindow = function (_parent, _iconPath, _appName, _width, _height, _imageName) {
    var imageName = _imageName;
    var width = _width;
    var height = _height;

    Desktop.ImageInspectionWindow.getImageName = function () {
        return imageName;
    }

    Desktop.ImageInspectionWindow.getWidth = function () {
        return width;
    }

    Desktop.ImageInspectionWindow.getHeight = function () {
        return height;
    }

    Desktop.Window.call(this, _parent, _iconPath, _appName);
}

Desktop.ImageInspectionWindow.prototype = Desktop.Window.subclassOf(Desktop.Window);

Desktop.ImageInspectionWindow.prototype.createWindowContent = function (_windowReference) {
    // Get the current windows contentContainer.
    var content = $(_windowReference).find('.windowContentContainer')[0];
    var middle = $(_windowReference).find('.windowMiddle')[0];
    var topBar = $(_windowReference).find('.topBar')[0];
    var bottomBar = $(_windowReference).find('.bottomBar')[0];
    var imageName = Desktop.ImageInspectionWindow.getImageName();
    var width = Desktop.ImageInspectionWindow.getWidth();
    var height = Desktop.ImageInspectionWindow.getHeight();
    var threshold = 630;

    var img = document.createElement('img');
    img.src = 'pics/' + imageName;

    // Set the width.
    $(content).css('width', width);
    $(topBar).css('width', width + 10);
    $(bottomBar).css('width', width + 10);

    // Set the height.
    $(middle).css('height', height);

    content.appendChild(img);
}